/*
 * @Author: admin@attacker.club
 * @Date: 2022-11-06 22:47:43
 * @LastEditTime: 2022-11-07 23:44:36
 * @Description: 
 */


import request from '@/utils/request'

// 获取当前登录用户信息
export function getUserInfo(data) {
  return request({
    url: '/user/userinfo/',
    method: 'get',
    params: data
  })
}

// 个人中心修改密码
export function changePassword(data) {
  return request({
    url: '/user/change-password/',
    method: 'put',
    data
  })
}

// 个人中心修改个人信息
export function changeInformation(data) {
  return request({
    url: '/user/change-information/',
    method: 'put',
    data
  })
}
